package com.alibaba.ai.controller;

import com.alibaba.ai.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 王振东
 */
@RestController
@RequestMapping("/")
public class EvaluateController {
    // 房源评估，立即评估
    @Autowired
    private EvaluateService evaluateService;
    @GetMapping("/list")
    public String getDate(@RequestParam String cVillageName,@RequestParam String cOrientationId,@RequestParam String cArea,@RequestParam Integer cFloor,@RequestParam Integer cTotalfloor){
        return evaluateService.selectByEvalute(cVillageName,cOrientationId,cArea,cFloor,cTotalfloor);
    }
}
